import React, { FC } from 'react';
import styles from './style.less';

export interface DescriptionItemProps {
  labelText : string;
}

const DescriptionItem : FC<DescriptionItemProps> = ({ labelText, children }) => {
  return (
    <div className={styles.descriptionItem}>
      <span className={styles.label}>{labelText}</span>
      <span className={styles.content}>{children}</span>
    </div>
  );
};

export default DescriptionItem;